using Terraria.GameContent;

namespace _ReplaceString_.UI.Styles;
public record UIBackground() : UIStyle(false, true)
{
	public static UIBackground Rect { get; } = new RectBackground();
}

file record RectBackground : UIBackground
{
	public override void Draw(UIBase ui)
	{
		Main.spriteBatch.Draw(TextureAssets.MagicPixel.Value, ui.Box, ui.BackgroundColor);
	}
}